home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-04-29 | 2.4 KB | 61 lines | [TEXT/GEOL] |
- Item 0607196 13-April-91 14:13PDT
-
- From: D2188 Office Product Tech, B Toback,PRT
-
- To: CDA0542 Serge Froment, Informagique,CAS
- MACAPP.TECH$ MacApp Technical
-
- Item forwarded by RON.METZKER to EYES
-
- ------------------------------------------------------------------------------
-
- Sub: Re: MacApp 3.0 vs C++
-
- Serge,
-
- I haven't seen the rest of the traffic on your note, so this may be a repeat.
-
- At the MADA conference, they showed some of the C++ code using MacBrowse. The
- code is eminently readable -- at least as good as the Pascal source if not
- better. It's well-commented, well-structured, uses the same names as the Pascal
- version, and has the same layout. In fact, when they first put the code on the
- screen, it took me a moment to realize that it was C++ rather than Pascal.
- Would that ALL C/C++ programmers did things that way!
-
- There is only one obfuscation, having to do with nested procedures. They make
- up for that with a couple of clarifications. They've set up classes for common
- Macintosh types such as Point and Rect, and overloaded some of the normal
- operators. The comparison operators are particularly nice, since they makes
- possible constructs like
-
- if (currentPoint != oldPoint) ...
-
- rather than calling EqualPt or comparing the coordinates explicitly.
-
- Also, the error handling mechanism is now easier to follow in the source code,
- thanks to the use of several different constructs that make recovery code an
- explicit adjunct to the code that it protects. This makes it possible to use a
- TRY/RECOVER construct:
-
- TRY
- stuff which might fail
- RECOVER
- what to do if it does fail
- END_TRY
-
- I noticed that you use THINK Pascal; I can see you might have a problem there.
- But Apple is introducing a debugger that looks as easy to use as the THINK
- debugger, and Zortech C++, while not Lightspeed, is (reportedly) at least fast
- enough to make C++ bearable. (And there's always The Debugger, which, since you
- don't live around Chicago, might be a good choice because of its incremental
- linker. (The Debugger is reportedly hard to use if you live around Chicago.)
- Again, not Lighspeed, but bearable.)
-
- My advice is to wait and see what the MacApp folks have come up with before
- getting too depressed.
-
- -- Bruce Toback
- OPT, Inc.
- AppleLink: D2188
-
-